package com.vy.stl.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @create: 2025/08/30 09:38
 * @description:
 */
@Data
@NoArgsConstructor
@ToString
public class Reserve {
    /**
     * ID
     */
    private Integer id;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 评分
     */
    private Double score;

    /**
     * 评语
     */
    private String comment;

    /**
     * 评论时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    /**
     * 预约时间
     */
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reserveTime;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
     * 会员id
     */
    private Integer memberId;

    /**
     * 课程对象
     */
    private Course course;

    /**
     * 会员对象
     */
    private Member member;
}
